package com.example.sonny.util;

import android.os.Bundle;

import com.example.sonny.fragment.bookListFragment;
import com.example.sonny.fragment.myBookFragment;
import com.example.sonny.fragment.settingFragment;

import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer;
import it.neokree.materialnavigationdrawer.elements.MaterialSection;

/**
 * Created by Sonny on 2015/10/11.
 */
public class MyDrawer extends MaterialNavigationDrawer {
    @Override
    public void init(Bundle bundle) {
        MaterialSection section0 = newSection("图书大厅", new bookListFragment());
        MaterialSection section1 = newSection("我的书库", new myBookFragment());
        MaterialSection section2 = newSection("个人设置", new settingFragment());
        this.addSection(section0);
        this.addSection(section1);
        this.addSection(section2);
    }
}
